package com.swu.education.repository;

import com.swu.education.entity.CourseConnUser;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by nana on 2018/3/25.
 */
public interface CourseConnUserRepository extends JpaRepository<CourseConnUser,Integer>{
  List<CourseConnUser> findAllByCourseId(int courseId);

  List<CourseConnUser> findAllByUserId(int userId);

  void deleteByCourseId(int courseId);
}
